package com.hutao.chargingpile.spread.pojo.entity;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.format.DateTimeFormatter;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuTao
 * @since 2023-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CpClient对象", description="客户表")
public class CpClient implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "客户登录账号",example = "1")
    private String number;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "性别(0:女,1:男)",example = "1")
    private Long sex;

    @ApiModelProperty(value = "客户手机号")
    private String mobile;

    @ApiModelProperty(value = "是否为投资商(0:不是投资商,1:是投资商)",example = "1")
    private Long investor;

    @ApiModelProperty(value = "客户积分数量",example = "1")
    private Long integral;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "0开充电卡,1不充电卡",example = "1")
    private Long electricCard;

    @ApiModelProperty(value = "身份证")
    private String identityCard;

    @ApiModelProperty(value = "账号等级(0普通用户,1:vip用户)",example = "1")
    private Long accountLevel;

    @ApiModelProperty(value = "实名认证(0为认证1是认证)",example = "1")
    private Long realName;

    @ApiModelProperty(value = "逻辑删除",example = "1")
    private Long isDelete;

//    @ApiModelProperty(value = "生成时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="UTF-8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
